Dynamic Re-Ranking automatically adjusts your ranking based on user trends.
optionalFilters
queryID
property that corresponds to a valid searchtimestamp
must be within one hour of the search request’s timestamp and no older than four days at the time of sendingobjectID
property that corresponds to a record currently in the specified indexuserToken
per search query per record (objectID
).userToken
per event policy.
That means when a userToken
sends duplicate events for the same user-query-record combination, only one counts for re-ranking
For example, if the same user (same userToken
) clicks on the same record 100 times after the same query, it counts as one click.
If the same user clicks on the same record after different queries, they count as separate events.
userToken
s, use secured API keys.
With secured API keys, you can include the userToken
as an embedded parameter when you generate the key on your backend.
This lets you give each user a unique key, but they can’t change its userToken
.facetFilters
for that attribute.
For example, if you use Algolia to populate your website’s category pages by performing an empty query with a categoryPageID
facet, you can set categoryPageID
as a Browsing facet.
Re-ranking reorders records in each categoryPageID
based on their popularity.
If you set the root of a nested faceting attribute as a Browsing Facet, Re-ranking reorders all its sub-attributes
For example, if you have an attribute named hierarchicalCategories
with several nested levels (like hierarchicalCategories.level0
and hierarchicalCategories.level1
), using only hierarchicalCategories
as a Browsing facet re-ranks empty queries filtered on hierarchicalCategories.level0
and hierarchicalCategories.level1
as well.
instock = true
, Dynamic Re-Ranking only promotes items that are in stock.